<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="/dist/iloveu.js"></script>
    <script>
        // let arr1 = [{
        //     index: 0, label: 'aaa', score: 10,
        // }, {
        //     index: 1, label: 'bbb', score: 7,
        // }, {
        //     index: 2, label: 'ccc', score: 5,
        // }, {
        //     index: 3, label: 'ddd', score: 10.00001,
        // }, {
        //     index: 4, label: 'eee', score: 5.00001,
        // },]

        // let arr2 = [10, 10.00001, 5.00001]

        // 期待数组
        // let arr1 = [{
        //     index: 1, label: 'bbb', score: 7,
        // }, {
        //     index: 2, label: 'ccc', score: 5,
        // },]

        // console.log(arr2.map(r => (arr1.find(rr => rr.score === r))));


        // let arr = [1, 2, 3]

        // let arr2 = _.find(arr, function (item, i) {
        //     return item * 2
        // })

        // console.log(arr2); // [2, 4, 6]

        // console.log(_.parseTime('2021-12-03T08:29:29.000Z')); // [1, 2]
        // console.log(_.getCurrentWeekDates());
        // console.log(_.getCurrentWeekDatesYMD());
        // console.log(_.getCurrentWeekRange());
        // console.log(_.getCurrentWeekRange2());

        // let run = _.compose(function (aa) {
        //     console.log(1111);
        //     return 1 + aa
        // }, function (aa) {
        //     console.log(2222);
        //     return 2 + aa
        // }, function (aa) {
        //     console.log(3333);
        //     return 3 + aa
        // })

        // console.log(run(10));

        // console.log(_.getCurrentWeekDates('2021-11-18'));
        // console.log(_.getCurrentWeekDatesYMD('2021-11-18'));
        // console.log(_.getCurrentWeekRange('2021-11-18'));
        // console.log(_.getCurrentWeekRange2('2021-11-18'));
        // let arr = [1, 2, 3, 4, 2, 6, 7]
        // let arr1 = 7
        // c = (arr, i) => { return arr += i }
        // console.log(_.reverse(arr))
        // console.log(getQueryParams('https://fanyi.baidu.com/translate?aldtype=16047&query=&keyfrom=baidu&smartresult=dict&lang=auto2zh#glg/zh/panme'))
        // let arr=[1,2,3,4,5,6,7]
        // console.log(join(arr))
        // let arr = [1, 2, 3, 4, 2, 6, 7]
        // let arr1 = 2
        // let arr2 = 2
        // console.log(fn(arr,arr2))
        //   console.log(insertAt(arr,arr1,arr2))
        console.log(pick({a:1,b:2},['a']))
    </script>
</body>

</html>